﻿//
// ICommandInitializer.cs
//
// Authors:
//  Kenny York <kennyyork@gmail.com>
//
// Copyright (C) 2009 Kenny York
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to use, copy, modify, merge, publish,
// distribute, sublicense, and/or sell copies of the Software, and to
// permit persons to whom the Software is furnished to do so, subject to
// the following conditions:
// 
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
// LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
// OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace clidotnet
{
    public interface ICommandInitializer
    {
        /// <summary>
        /// Adds a CommandGroup to the list of ICommand objects
        /// </summary>
        /// <param name="group">The CommandGroup to add</param>
        /// <exception cref="ArgumentNullException">Thrown when group is null.</exception>
        /// <exception cref="ArgumentException">Thrown when the named given by group is already in use.</exception>
        void Add(CommandGroup group);

        /// <summary>
        /// Add a Command with no parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add(string name, CommandLineAction action);

        /// <summary>
        /// Add a Command with no parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add(string name, string help, CommandLineAction action);

        /// <summary>
        /// Add a Command to the CommandList
        /// </summary>
        /// <param name="command"></param>
        void Add(Command command);

        /// <summary>
        /// Add a Command with one parameter
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T>(string name, CommandLineAction<T> action);

        /// <summary>
        /// Add a Command with one parameter
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T>(string name, string help, CommandLineAction<T> action);

        /// <summary>
        /// Add a Command with one parameter
        /// </summary>
        /// <param name="command"></param>
        void Add<T>(Command<T> command);

        /// <summary>
        /// Add a Command with two parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1>(string name, CommandLineAction<T0, T1> action);

        /// <summary>
        /// Add a Command with two parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1>(string name, string help, CommandLineAction<T0, T1> action);

        /// <summary>
        /// Add a Command with two parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1>(Command<T0, T1> command);       

        /// <summary>
        /// Add a Command with three parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2>(string name, CommandLineAction<T0, T1, T2> action);

        /// <summary>
        /// Add a Command with three parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2>(string name, string help, CommandLineAction<T0, T1, T2> action);

        /// <summary>
        /// Add a Command with three parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2>(Command<T0, T1, T2> command);

        /// <summary>
        /// Add a Command with four parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3>(string name, CommandLineAction<T0, T1, T2, T3> action);

        /// <summary>
        /// Add a Command with four parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3>(string name, string help, CommandLineAction<T0, T1, T2, T3> action);

        /// <summary>
        /// Add a Command with four parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3>(Command<T0, T1, T2, T3> command);

        /// <summary>
        /// Add a Command with five parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4>(string name, CommandLineAction<T0, T1, T2, T3, T4> action);

        /// <summary>
        /// Add a Command with five parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4>(string name, string help, CommandLineAction<T0, T1, T2, T3, T4> action);

        /// <summary>
        /// Add a Command with five parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3, T4>(Command<T0, T1, T2, T3, T4> command);

        /// <summary>
        /// Add a Command with six parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5>(string name, CommandLineAction<T0, T1, T2, T3, T4, T5> action);

        /// <summary>
        /// Add a Command with six parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5>(string name, string help, CommandLineAction<T0, T1, T2, T3, T4, T5> action);

        /// <summary>
        /// Add a Command with six parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3, T4, T5>(Command<T0, T1, T2, T3, T4, T5> command);

        /// <summary>
        /// Add a Command with seven parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6>(string name, CommandLineAction<T0, T1, T2, T3, T4, T5, T6> action);

        /// <summary>
        /// Add a Command with seven parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6>(string name, string help, CommandLineAction<T0, T1, T2, T3, T4, T5, T6> action);

        /// <summary>
        /// Add a Command with seven parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3, T4, T5, T6>(Command<T0, T1, T2, T3, T4, T5, T6> command);

        /// <summary>
        /// Add a Command with eight parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7>(string name, CommandLineAction<T0, T1, T2, T3, T4, T5, T6, T7> action);

        /// <summary>
        /// Add a Command with eight parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7>(string name, string help, CommandLineAction<T0, T1, T2, T3, T4, T5, T6, T7> action);

        /// <summary>
        /// Add a Command with eight parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7>(Command<T0, T1, T2, T3, T4, T5, T6, T7> command);

        /// <summary>
        /// Add a Command with nine parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7, T8>(string name, CommandLineAction<T0, T1, T2, T3, T4, T5, T6, T7, T8> action);

        /// <summary>
        /// Add a Command with nine parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7, T8>(string name, string help, CommandLineAction<T0, T1, T2, T3, T4, T5, T6, T7, T8> action);

        /// <summary>
        /// Add a Command with nine parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7, T8>(Command<T0, T1, T2, T3, T4, T5, T6, T7, T8> command);

        /// <summary>
        /// Add a Command with ten parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(string name, CommandLineAction<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> action);

        /// <summary>
        /// Add a Command with ten parameters
        /// </summary>
        /// <param name="name">Pipe (|) delimited list of names used to call the command</param>
        /// <param name="help">Help text (optional)</param>
        /// <param name="action">The action to perform when <pararef name="name"/> is called.</param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(string name, string help, CommandLineAction<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> action);
 
        /// <summary>
        /// Add a Command with ten parameters
        /// </summary>
        /// <param name="command"></param>
        void Add<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Command<T0, T1, T2, T3, T4, T5, T6, T7, T8, T9> command);       
    }
}
